From: | Olaf Barthel |
Date: | 11 Aug 99 at 08:15:49 |
Subject: | RE: RMBTRAP |
From: "Olaf Barthel" <olsen-amigac@sourcery.han.de>
On Aug 10 Jesper (Jesper Svennevid) wrote:
> From: "Jesper Svennevid" <jesper@fxrealm.com>
>
> > From: "Lloyd Rosen" <seasons@softhome.net>
> >
> > Hi list! My first posting!
> >
> > How can I modify the RMBTRAP flag in a window after it's opened ?
> >
> > (I want to use right mouse for other stuff when the pointer is not
> > at the top of the screen)
>
> You could change the Flags-field in the Window-structure when you
> needed to, but I'm not sure how well that's supported... And it's
> not good programming-style :P
It's the only way to do it, I'm afraid. Heed the documentation, though:
you must make the bit change an atomic operation so no Task switch can
occur while you are still making the change.